package util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectFactory {
	public static Connection getConnection() throws ClassNotFoundException, SQLException {
	    Class.forName("com.mysql.jdbc.Driver");  
	    Connection conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3308/employee","root","hanyao19950611");	     
		return conn;
	}
}
